package cn.com.headfree.point.service.impl;

import cn.com.headfree.entity.TSalaryBusinessBind;
import cn.com.headfree.point.dao.ISalaryBusinessBindDao;
import cn.com.headfree.point.service.ISalaryBusinessBindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.UUID;

/**
 * @Description: TODO
 * @Author wcSun
 * @Date 2021/6/23
 **/
@Service("salaryBusinessBindService")
@Transactional
public class SalaryBusinessBindServiceImpl implements ISalaryBusinessBindService {

    @Autowired
    private ISalaryBusinessBindDao salaryBusinessBindDao;

    @Override
    public List<TSalaryBusinessBind> selectSalaryBusinessBindByItem(String salaryId,String businessTypeId,String itemId) {
        return salaryBusinessBindDao.selectSalaryBusinessBindByItem(salaryId,businessTypeId,itemId);
    }

    @Override
    public List<TSalaryBusinessBind> selectSalaryBusinessBind(TSalaryBusinessBind salaryBusinessBind) {
        return salaryBusinessBindDao.selectSalaryBusinessBind(salaryBusinessBind);
    }

    @Override
    public void saveSalaryBusinessBindByItem(String salaryId, String businessTypeId, String itemId) {
        TSalaryBusinessBind salaryBusinessBind = new TSalaryBusinessBind(salaryId,businessTypeId,itemId);
        salaryBusinessBindDao.saveInfo(salaryBusinessBind);
    }

    @Override
    public void saveSalaryBusinessBind(TSalaryBusinessBind salaryBusinessBind) {
        salaryBusinessBindDao.saveInfo(salaryBusinessBind);
    }
}
